﻿@model WebTech.Coursework02.Models.employee

@{
    ViewBag.Title = "Edit Employee";
}

<h2>Personal Information</h2>
<br />
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>employee</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.emp_no)
        </div>
        <div class="editor-field">
            @Html.Label(Model.emp_no.ToString())
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.birth_date)
        </div>
        <div class="editor-field">
             @Html.Label(Model.birth_date.ToShortDateString())
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.first_name)
        </div>
        <div class="editor-field">
             @Html.Label(Model.first_name.ToString())
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.last_name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.last_name)
            @Html.ValidationMessageFor(model => model.last_name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.gender)
        </div>
        <div class="editor-field">
             @Html.Label(Model.gender.ToString())
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.hire_date)
        </div>
        <div class="editor-field">
             @Html.Label(Model.hire_date.ToShortDateString())
        </div>
    </fieldset>
     <section>
            <p  class="foo">
                <input type="submit" value="Save"  style="text-align:center"/>
            </p>
     </section>
  
}

@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
